package com.jd.aop.controller;

import com.jd.aop.anno.LogAnno;
import com.jd.aop.domain.Aop;
import com.jd.aop.query.AopQuery;
import com.jd.aop.service.AopService;
import com.jd.basic.util.AjaxResult;
import com.jd.basic.util.PageList;
import com.jd.org.domain.Department;
import com.jd.org.query.DepartmentQuery;
import com.jd.org.service.IDepartmentService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@RestController
@RequestMapping("/log")
@Api(value = "日志", description = "日志")
public class AopController {
    @Autowired
    private AopService service;


    /**
     * 分页查询
     */
    @PostMapping()
    public PageList<Aop> queryByPage(@RequestBody AopQuery query) {
        System.err.println("查询=========="+ query);
        return service.queryByPage(query);
    }





}
